Revert "open-with-widget: don't check if the app supports URIs/files"
authorCosimo Cecchi <cosimoc@gnome.org>
Tue, 23 Nov 2010 17:10:01 +0000 (18:10 +0100)
committerCosimo Cecchi <cosimoc@gnome.org>
Tue, 23 Nov 2010 17:10:01 +0000 (18:10 +0100)
This reverts commit b432242078c88b0b8b1762fb5c86424097dd5236.

gtk/gtkappchooserwidget.c

index 5bac17b989c744d963dbc08d5673edd7c942ef81..bafff98c63b1ea5f74411f2fdaf35f526383b295 100644 (file)
@@ -115,7 +115,7 @@ refresh_and_emit_app_selected (GtkAppChooserWidget *self,
   if (info == NULL)
     return;
 
-  if (self->priv->selected_app_info != NULL)
+  if (self->priv->selected_app_info)
     {
       if (!g_app_info_equal (self->priv->selected_app_info, info))
        {
@@ -427,6 +427,10 @@ gtk_app_chooser_widget_add_section (GtkAppChooserWidget *self,
     {
       app = l->data;
 
+      if (!g_app_info_supports_uris (app) &&
+         !g_app_info_supports_files (app))
+       continue;
+
       if (exclude_apps != NULL &&
          g_list_find_custom (exclude_apps, app,
                              (GCompareFunc) compare_apps_func))